<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <style>
        .tou {
            width: 33px;
            height: 33px;
            background-color: #2980b9;
        }

        * {
            list-style: none;
        }

        .avatar {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            border: 5px solid #fcfcfc;
            margin: 0 auto;
            position: absolute;
            top: 100px;
            left: 50%;
            transform: translateX(-50%);
        }

        .img2 {
            width: 100px;
            height: 100px;
            border-radius: 50%;

        }

        .img1 {
            width: 100%;
            height: 100%;
        }

        body,
        html {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;
        }

        .content {
            width: 1170px;
            height: 650px;
            background-color: #f5f5f5;
            margin: 0 auto;
            position: relative;
            top: 50%;
            transform: translateY(-50%);
        }

        .login-wrapper {
            width: 1170px;
            height: 522px;

        }

        .screen {
            width: 430px;
            height: 522px;
            margin: 0 auto;
        }

        .well {
            width: 430px;
            height: 522px;
        }

        .login-head {
            width: 430px;
            height: 156px;
            background-color: #83eabb;
        }

        .login-form {
            width: 430px;
            height: 366px;
            background-color: #ffffff;
        }

        .login-pws {
            width: 370px;
            height: 42px;
            margin: 0 auto;
            background-color: #b9f3db;
            position: relative;
            top: 80px;
            font-size: 14px;
            color: #056c6c;
            line-height: 42px;
            text-align: center;
        }

        .login-list {
            width: 370px;
            height: 160px;
            /* 增加高度以容纳登录按钮 */
            margin: 0 auto;
            position: relative;
            top: 120px;
            /* 移除红色背景 */
            /* background-color: #e74c3c; */
            text-align: center;
            display: flex;
            flex-direction: column;
            justify-content: space-around;
            align-items: center;
            padding: 0;
            /* 移除默认内边距 */
        }

        .login-list li {
            display: flex;
            width: 100%;
            /* 让每个li占满宽度 */
            margin-bottom: 10px;
            /* 添加项间距 */
        }

        .login-list li input {
            width: calc(100% - 43px);
            /* 计算宽度，减去图标区域 */
            height: 34px;
            background-color: #fdfcfc;
            /* 添加边框和圆角 */
            border: 1px solid #ddd;
            border-radius: 4px;
            padding: 0 10px;
            /* 添加内边距 */
            outline: none;
            /* 移除默认焦点样式 */
        }

        /* 添加输入框焦点样式 */
        .login-list li input:focus {
            border-color: #2980b9;
            box-shadow: 0 0 5px rgba(41, 128, 185, 0.3);
        }

        /* 图标样式 */
        .tou,
        .shen {
            width: 33px;
            height: 34px;
            background-color: #2980b9;
            margin-right: 10px;
            /* 与输入框间距 */
            border-radius: 4px 0 0 4px;
            /* 左圆角 */
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
        }

        /* 登录按钮样式 */
        .login-btn {
            width: 100%;
            height: 40px;
            background-color: #2980b9;
            color: white;
            border: none;
            border-radius: 4px;
            font-size: 16px;
            cursor: pointer;
            margin-top: 10px;
        }

        .login-btn:hover {
            background-color: #1f6dad;
        }

        /* 图标字体样式 */
        .icon-user::before {
            content: "👤";
            font-size: 18px;
        }

        .icon-password::before {
            content: "🔒";
            font-size: 18px;
        }
    </style>
</head>


<body>
    <div class="content">
        <div class="login-wrapper">
            <div class="screen">
                <div class="well">
                    <div class="login-head">
                        <img src="src/static/images/login-head.png" alt="" class="img1">
                    </div>
                    <div class="login-form">
                        <div class="avatar">
                            <img src="src/static/images/avatar.png" alt="" class="img2">
                        </div>
                        <div class="login-pws">演示账号：admin 密码：123456</div>
                        <ul class="login-list">
                            <li>
                                <div class="tou">
                                    <!-- 添加用户图标 -->
                                    <i class="icon-user"></i>
                                </div>
                                <input type="text" placeholder="请输入账号" id="username">
                            </li>
                            <li>
                                <div class="shen">
                                    <!-- 添加密码图标 -->
                                    <i class="icon-password"></i>
                                </div>
                                <input type="password" placeholder="请输入密码" id="password">
                            </li>
                            <!-- 添加登录按钮 -->
                            <li>
                                <button type="button" class="login-btn" id="loginBtn">登录</button>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script type="module" src="src/static/javascripts/login.js" ></script>
</body>
</html>